package com.cxrj.pqm.utils;

/**
 * 分页信息
 * @author MountainTop_java
 *
 */
public class PageBean {
	private int pageIndex;
	private int pageSize;
	private int pageCount;
	private int pageTotal;
	
	
	
	
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getPageTotal() {
		return pageCount%pageSize==0?(pageCount/pageSize):(pageCount/pageSize+1);
	}
	@Override
	public String toString() {
		return "PageBean [pageIndex=" + pageIndex + ", pageSize=" + pageSize + ", pageCount=" + pageCount
				+ ", pageTotal=" + pageTotal + "]";
	}

}
